<div class="nav_bar" style="line-height: 1">
    <a href="{:url('index/index')}"><ul>
        <li><img id="nav_shouye" src="__IMG__/shouye.png" style="width: 1.8em;height: 1.8em"> </li>
        <li style="font-size: 12px">首页 </li>
    </ul></a>
    <a href="{:url('user/erweima')}">
        <ul>
            <li><img id="nav_ewm" src="__IMG__/zf_dian.png"  style="width: 1.8em;height: 1.8em"> </li>
            <li style="font-size: 12px">名片/支付 </li>
        </ul>
    </a>
    <a href="{:url('user/index')}"><ul>
        <li><img id="nav_wode" src="__IMG__/wode.png"  style="width: 1.8em;height: 1.8em"> </li>
        <li style="font-size: 12px">我的 </li>
    </ul></a>
</div>
<script>
    function changeNav(){
        var myhref = window.location.href;
        if(myhref == '__BASE__/web.php/index/index.html'){
            $("#nav_shouye").attr('src','/static/web/img/shouye2.png');
        }else if(myhref == '__BASE__/web.php/user/erweima.html'){
            $("#nav_ewm").attr('src','/static/web/img/zf_dian2.png');
        }else if(myhref == '__BASE__/web.php/user/index.html'){
            $("#nav_wode").attr('src','/static/web/img/wode2.png');
        }
    }
    changeNav();

</script>